package com.example.stock.entity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.stock.comm.FreqEnum;
import com.example.stock.comm.StrategyEnum;
import com.example.stock.entity.eo.StockStatEo;
import com.example.stock.vo.DataVo;

import java.util.List;


public interface IStockStatService extends IService<StockStatEo> {


    Double analysisEmaUp(int m, int n, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq);

    Double analysisEmaUpComplex(int ref, int ma, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq);

    StockStatEo getTopOne(String tsCode, StrategyEnum strategyEnum);

    Double analysisEmaRef0(int m, int n, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq);

    Double analysisMaUp(int m, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq);

    Double analysisMaCross(int m, int n, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq);

    Double analysisMaPure(int m, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq);

    Double analysis(int m, int n, List<DataVo> closeData, boolean save, String tsCode, FreqEnum freq, StrategyEnum strategy);

    void delete(String tsCode, StrategyEnum strategy);
}
